<script lang="ts">
    export default {
        name: 'NameCategory',
        props: ['title']
    }
</script>

<template>
    <div class="name1">
       <h2>{{title}} 这是具名插槽</h2>
       <slot name="slot1">111111111</slot>
       <slot name="slot2">222222222</slot>
    </div>
</template>

<style scoped>
  .name1{
    background-color: #42b983;
    width: 300px;
    height: 300px;
  }
</style>
